package com.sxhuayuan.parking.service;

import com.sxhuayuan.parking.compenent.Page;
import com.sxhuayuan.parking.compenent.Pageable;
import com.sxhuayuan.parking.entity.Invoice;
import com.sxhuayuan.parking.entity.Member;

import java.util.Date;
import java.util.List;

/**
 * 发票记录service
 * @author helong
 * @create 2019/8/29 15:20
 */
public interface InvoiceService extends BaseService<Invoice, Long> {
	/** 通过uniqueId查找开票记录 */
	Invoice findBySn(String sn);

	/** 通过时间范围查询开票中的记录 */
	List<Invoice> findInvoiceWaitBycreateDate(Date startTime, Date endingTime);

	Page<Invoice> findPage(Pageable pageable, Member member);
}
